﻿#region Copyright

//  Weapsy - http://www.weapsy.org
//  Copyright (c) 2011-2012 Luca Cammarata Briguglia
//  Licensed under the Weapsy Public License Version 1.0 (WPL-1.0)
//  A copy of this license may be found at http://www.weapsy.org/Documentation/License.txt

#endregion

using System;
using Autofac;
using LakeSide.Service;
using LakeSide.IService;



namespace LakeSide.Core
{
    public class InjectionModule : Autofac.Module
    {
        protected override void Load(ContainerBuilder builder)
        {
            if (builder == null)
                throw new ArgumentNullException("builder");
            //builder.RegisterType(Type.GetType("TestService")).As<ITestService>();

            builder.RegisterType<AppInit>().As<IAppInit>();

            //builder.RegisterGeneric(typeof(EfRepository<>)).As(typeof(IRepository<>));

            
        }
    }
}